package org.jacp.demo.workbench;

import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.FlowLayout;
import java.util.Map;

import javax.swing.JMenu;

import org.jacp.api.componentLayout.Layout;
import org.jacp.api.util.WorkspaceMode;
import org.jacp.swing.rcp.action.SwingAction;
import org.jacp.swing.rcp.componentLayout.SwingWorkbenchLayout;
import org.jacp.swing.rcp.util.OSXBottomBarPanel;
import org.jacp.swing.rcp.util.OSXToolBar;
import org.jacp.swing.rcp.workbench.ASwingWorkbench;

public class ImageWorkbench extends ASwingWorkbench{


    /**
     * 
     */
    private static final long serialVersionUID = 8311128494696642358L;

    public ImageWorkbench() {
	super("image demo");
    }

    @Override
    public void handleBarEntries(Map<Layout, Container> arg0) {
	// TODO Auto-generated method stub
	
    }

    @Override
    public void handleInitialLayout(SwingAction arg0, SwingWorkbenchLayout layout) {
	layout.setWorkspaceMode(WorkspaceMode.SINGLE_PANE);
	layout.setLayoutManager(new BorderLayout());
	layout.registerToolBar(Layout.NORTH, new OSXToolBar());
	layout.registerToolBar(Layout.SOUTH, new OSXBottomBarPanel(FlowLayout.RIGHT));
	layout.setWorkbenchXYSize(1024, 600);
	
    }

    @Override
    public JMenu handleMenuEntries(JMenu arg0) {
	// TODO Auto-generated method stub
	return null;
    }

   



}
